import { ref, Ref } from "vue";
export function UseCaptcha() {
      // 验证码
      let captchaImgUrl: Ref<string> = ref("/api/captcha");
      function reflectCaptcha() {
            captchaImgUrl.value = "/api/captcha?id=" + Math.random();
      }

      return {
            captchaImgUrl: captchaImgUrl.value,
            reflectCaptcha,
      };
}
